package com.more.offer.threadtest.semaphoretest;

/**
 * @author pinoc
 * @date 2022/6/17
 */
public class RunTest {

	public static void main(String[] args) {
		SemaphoreSingleTest semaphoreSingleTest = new SemaphoreSingleTest();
		ThreadA threadA = new ThreadA(semaphoreSingleTest);
		threadA.setName("thread-A");
		threadA.start();
		ThreadB threadB = new ThreadB(semaphoreSingleTest);
		threadB.setName("thread-B");
		threadB.start();
		ThreadC threadC = new ThreadC(semaphoreSingleTest);
		threadC.setName("thread-C");
		threadC.start();
	}
}
